﻿using DevelopTool.Model.CommonModels;
using LiteDB;
using System.Collections.Generic;
using System.Data;

namespace DevelopTool.Model.OffLineModels
{
    /// <summary>
    /// 离线数据实体
    /// </summary>
    public class OffLine : ManageMenu
    {
        /// <summary>
        /// 已压缩的DataTable数据流
        /// </summary>       
        public byte[] DataTableByte { get; set; }


        /// <summary>
        /// 已压缩的DataGridColumn数据流
        /// </summary>       
        public byte[] DataGridColumnsByte { get; set; }


        /// <summary>
        /// 解压缩后的DataTable数据，不存数据库
        /// </summary>
        [BsonIgnore]
        public DataTable DataTable { get; set; }


        /// <summary>
        /// 解压缩后的DataGridColumn集合数据，不存数据库
        /// </summary>
        [BsonIgnore]
        public List<DataGridColumn> DataGridColumns { get; set; }
    }
}
